import { http } from '@/utils/http'
// 查询订单列表
export const getOrderListAPI = (data) => {
  return http({
    method: 'GET',
    url: '/tour/tour/order/getOrderList',
    data,
  })
}

/*取消订单*/
export const cancelOrderAPI = (data) => {
  return http({
    method: 'POST',
    url: '/tour/tour/order/cancelOrder',
    data,
    header: {
      isSerialize: true,
    },
  })
}

/**订单详情*/
export const getOrderDetailAPI = (data) => {
  return http({
    method: 'GET',
    url: '/tour/tour/order/getOrderDetail',
    data,
  })
}

// 订单支付
export const payAPI = (data) => {
  return http({
    method: 'POST',
    url: '/tour/tour/pay/pay',
    data,
  })
}
